import React from 'react'
// import Home from './containers/Home/index'
import { Provider } from 'react-redux'
import { createStore,applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import reducers from './reducers'
import RouterMap from "./router";

let store = createStore(reducers,applyMiddleware(thunk),window.devToolsExtension)

class App extends React.Component{
    render(){
        return(
            <Provider store={store}>
                <RouterMap/>
            </Provider>
            )
    }
    componentDidMount(){
        console.log('app加载成功')
    }
}

export default App